package gov.kqqzyyy.monkey.pharmacyscreen.code.object;

/**
 * Created by Monkey on 2017/10/13.
 * 取药病人
 */

public class Patient {
    private String CFHM;//处方号码
    private String BRXM;//病人姓名
    private int PDHM;//排队序号
    private String FYRQ;//发药时间
    private String FYBZ;
    private String PYBZ;
    private String FYCK;//
    private String YFSB;
    private String PYWCSJ;
    private String JHPB;//叫号判别
    private int DJYBZ;
    private String SFRQ;
    private int BRNL;//病人年龄
    private int MJBZ;//免煎标志 1：颗粒剂 0：自煎草药

    public int getMJBZ() {
        return MJBZ;
    }

    public void setMJBZ(int MJBZ) {
        this.MJBZ = MJBZ;
    }

    public int getBRNL() {
        return BRNL;
    }

    public void setBRNL(int BRNL) {
        this.BRNL = BRNL;
    }

    public String getSFRQ() {
        return SFRQ;
    }

    public void setSFRQ(String SFRQ) {
        this.SFRQ = SFRQ;
    }

    public int getDJYBZ() {
        return DJYBZ;
    }

    public void setDJYBZ(int DJYBZ) {
        this.DJYBZ = DJYBZ;
    }

    public String getFYCK() {
        return FYCK;
    }

    public void setFYCK(String FYCK) {
        this.FYCK = FYCK;
    }

    public String getYFSB() {
        return YFSB;
    }

    public void setYFSB(String YFSB) {
        this.YFSB = YFSB;
    }

    public String getPYWCSJ() {
        return PYWCSJ;
    }

    public void setPYWCSJ(String PYWCSJ) {
        this.PYWCSJ = PYWCSJ;
    }

    public String getPYBZ() {
        return PYBZ;
    }

    public void setPYBZ(String PYBZ) {
        this.PYBZ = PYBZ;
    }

    public String getJHPB() {
        return JHPB;
    }

    public void setJHPB(String JHPB) {
        this.JHPB = JHPB;
    }

    public String getCFHM() {
        return CFHM;
    }

    public void setCFHM(String CFHM) {
        this.CFHM = CFHM;
    }

    public int getPDHM() {
        return PDHM;
    }

    public void setPDHM(int PDHM) {
        this.PDHM = PDHM;
    }

    public String getBRXM() {
        return BRXM;
    }

    public void setBRXM(String BRXM) {
        this.BRXM = BRXM;
    }

    public String getFYRQ() {
        return FYRQ;
    }

    public void setFYRQ(String FYRQ) {
        this.FYRQ = FYRQ;
    }

    public String getFYBZ() {
        return FYBZ;
    }

    public void setFYBZ(String FYBZ) {
        this.FYBZ = FYBZ;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof Patient) {
            Patient patient = (Patient) obj;
            return patient.getPDHM() == getPDHM();
        }
        return super.equals(obj);
    }

    @Override
    public int hashCode() {
        return getPDHM();
//        return super.hashCode();
    }
}
